1   /*
2    * Copyright (c) 2001, 2005, Oracle and/or its affiliates. All rights reserved.
3    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4    *
5    * This code is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License version 2 only, as
7    * published by the Free Software Foundation.  Oracle designates this
8    * particular file as subject to the "Classpath" exception as provided
9    * by Oracle in the LICENSE file that accompanied this code.
10   *
11   * This code is distributed in the hope that it will be useful, but WITHOUT
12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14   * version 2 for more details (a copy is included in the LICENSE file that
15   * accompanied this code).
16   *
17   * You should have received a copy of the GNU General Public License version
18   * 2 along with this work; if not, write to the Free Software Foundation,
19   * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20   *
21   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22   * or visit www.oracle.com if you need additional information or have any
23   * questions.
24   */
25  
26  package com.sun.imageio.plugins.gif;
27  
28  import java.util.ListResourceBundle;
29  
30  public class GIFImageMetadataFormatResources extends ListResourceBundle {
31  
32      public GIFImageMetadataFormatResources() {}
33  
34      protected Object[][] getContents() {
35          return new Object[][] {
36  
37          // Node name, followed by description
38          { "ImageDescriptor", "The image descriptor" },
39          { "LocalColorTable", "The local color table" },
40          { "ColorTableEntry", "A local color table entry" },
41          { "GraphicControlExtension", "A graphic control extension" },
42          { "PlainTextExtension", "A plain text (text grid) extension" },
43          { "ApplicationExtensions", "A set of application extensions" },
44          { "ApplicationExtension", "An application extension" },
45          { "CommentExtensions", "A set of comments" },
46          { "CommentExtension", "A comment" },
47  
48          // Node name + "/" + AttributeName, followed by description
49          { "ImageDescriptor/imageLeftPosition",
50            "The X offset of the image relative to the screen origin" },
51          { "ImageDescriptor/imageTopPosition",
52            "The Y offset of the image relative to the screen origin" },
53          { "ImageDescriptor/imageWidth",
54            "The width of the image" },
55          { "ImageDescriptor/imageHeight",
56            "The height of the image" },
57          { "ImageDescriptor/interlaceFlag",
58            "True if the image is stored using interlacing" },
59          { "LocalColorTable/sizeOfLocalColorTable",
60            "The number of entries in the local color table" },
61          { "LocalColorTable/sortFlag",
62            "True if the local color table is sorted by frequency" },
63          { "ColorTableEntry/index", "The index of the color table entry" },
64          { "ColorTableEntry/red",
65            "The red value for the color table entry" },
66          { "ColorTableEntry/green",
67            "The green value for the color table entry" },
68          { "ColorTableEntry/blue",
69            "The blue value for the color table entry" },
70          { "GraphicControlExtension/disposalMethod",
71            "The disposal method for this frame" },
72          { "GraphicControlExtension/userInputFlag",
73            "True if the frame should be advanced based on user input" },
74          { "GraphicControlExtension/transparentColorFlag",
75            "True if a transparent color exists" },
76          { "GraphicControlExtension/delayTime",
77            "The time to delay between frames, in hundredths of a second" },
78          { "GraphicControlExtension/transparentColorIndex",
79            "The transparent color, if transparentColorFlag is true" },
80          { "PlainTextExtension/textGridLeft",
81            "The X offset of the text grid" },
82          { "PlainTextExtension/textGridTop",
83            "The Y offset of the text grid" },
84          { "PlainTextExtension/textGridWidth",
85            "The number of columns in the text grid" },
86          { "PlainTextExtension/textGridHeight",
87            "The number of rows in the text grid" },
88          { "PlainTextExtension/characterCellWidth",
89            "The width of a character cell" },
90          { "PlainTextExtension/characterCellHeight",
91            "The height of a character cell" },
92          { "PlainTextExtension/textForegroundColor",
93            "The text foreground color index" },
94          { "PlainTextExtension/textBackgroundColor",
95            "The text background color index" },
96          { "ApplicationExtension/applicationID",
97            "The application ID" },
98          { "ApplicationExtension/authenticationCode",
99            "The authentication code" },
100         { "CommentExtension/value", "The comment" },
101 
102         };
103     }
104 }